package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 产品检验对象 product_check
 * 
 * @author ruoyi
 * @date 2023-11-02
 */
public class ProductCheck extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 产品ID */
    private Long id;

    /** 流水号 */
    @Excel(name = "流水号")
    private String flowNo;

    /** 计划编号 */
    @Excel(name = "计划编号")
    private String planNo;

    /** 作业名称 */
    @Excel(name = "作业名称")
    private String workName;

    /** 物料名称 */
    @Excel(name = "物料名称")
    private String materialName;

    /** 规格 */
    @Excel(name = "规格")
    private String quality;

    /** 型号 */
    @Excel(name = "型号")
    private String model;

    /** 单位 */
    @Excel(name = "单位")
    private String unit;

    /** 检验项 */
    @Excel(name = "检验项")
    private String checkItem;

    /** 生产数量 */
    @Excel(name = "生产数量")
    private Integer productCount;

    /** 采样数量 */
    @Excel(name = "采样数量")
    private Integer sampleCount;

    /** 检查值 */
    @Excel(name = "检查值")
    private Integer checkValue;

    /** 阈值上限 */
    @Excel(name = "阈值上限")
    private Integer max;

    /** 阈值下限 */
    @Excel(name = "阈值下限")
    private Integer min;

    /** 检验结果（0合格 1不合格） */
    @Excel(name = "检验结果", readConverterExp = "0=合格,1=不合格")
    private String checkResult;

    /** 检验人 */
    @Excel(name = "检验人")
    private String checkPerson;

    /** 检验时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "检验时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date checkTime;

    /** 员工单号 */
    private Integer finishId;

    /** 检验标准 */
    private Long checkStandard;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setFlowNo(String flowNo) 
    {
        this.flowNo = flowNo;
    }

    public String getFlowNo() 
    {
        return flowNo;
    }
    public void setPlanNo(String planNo) 
    {
        this.planNo = planNo;
    }

    public String getPlanNo() 
    {
        return planNo;
    }
    public void setWorkName(String workName) 
    {
        this.workName = workName;
    }

    public String getWorkName() 
    {
        return workName;
    }
    public void setMaterialName(String materialName) 
    {
        this.materialName = materialName;
    }

    public String getMaterialName() 
    {
        return materialName;
    }
    public void setQuality(String quality) 
    {
        this.quality = quality;
    }

    public String getQuality() 
    {
        return quality;
    }
    public void setModel(String model) 
    {
        this.model = model;
    }

    public String getModel() 
    {
        return model;
    }
    public void setUnit(String unit) 
    {
        this.unit = unit;
    }

    public String getUnit() 
    {
        return unit;
    }
    public void setCheckItem(String checkItem) 
    {
        this.checkItem = checkItem;
    }

    public String getCheckItem() 
    {
        return checkItem;
    }
    public void setProductCount(Integer productCount) 
    {
        this.productCount = productCount;
    }

    public Integer getProductCount() 
    {
        return productCount;
    }
    public void setSampleCount(Integer sampleCount) 
    {
        this.sampleCount = sampleCount;
    }

    public Integer getSampleCount() 
    {
        return sampleCount;
    }
    public void setCheckValue(Integer checkValue) 
    {
        this.checkValue = checkValue;
    }

    public Integer getCheckValue() 
    {
        return checkValue;
    }
    public void setMax(Integer max) 
    {
        this.max = max;
    }

    public Integer getMax() 
    {
        return max;
    }
    public void setMin(Integer min) 
    {
        this.min = min;
    }

    public Integer getMin() 
    {
        return min;
    }
    public void setCheckResult(String checkResult) 
    {
        this.checkResult = checkResult;
    }

    public String getCheckResult() 
    {
        return checkResult;
    }
    public void setCheckPerson(String checkPerson) 
    {
        this.checkPerson = checkPerson;
    }

    public String getCheckPerson() 
    {
        return checkPerson;
    }
    public void setCheckTime(Date checkTime) 
    {
        this.checkTime = checkTime;
    }

    public Date getCheckTime() 
    {
        return checkTime;
    }
    public void setFinishId(Integer finishId) 
    {
        this.finishId = finishId;
    }

    public Integer getFinishId() 
    {
        return finishId;
    }
    public void setCheckStandard(Long checkStandard) 
    {
        this.checkStandard = checkStandard;
    }

    public Long getCheckStandard() 
    {
        return checkStandard;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("flowNo", getFlowNo())
            .append("planNo", getPlanNo())
            .append("workName", getWorkName())
            .append("materialName", getMaterialName())
            .append("quality", getQuality())
            .append("model", getModel())
            .append("unit", getUnit())
            .append("checkItem", getCheckItem())
            .append("productCount", getProductCount())
            .append("sampleCount", getSampleCount())
            .append("checkValue", getCheckValue())
            .append("max", getMax())
            .append("min", getMin())
            .append("checkResult", getCheckResult())
            .append("checkPerson", getCheckPerson())
            .append("checkTime", getCheckTime())
            .append("finishId", getFinishId())
            .append("checkStandard", getCheckStandard())
            .append("remark", getRemark())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
